package com.itheima.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Mapper接口类
 * @Description MpUserMapper
 * @Author kzw
 * @Date 2024-11-08
 */
@Mapper
public interface MpUserMapper extends BaseMapper<User> {

    /**
     * 自定义SQL查询用户
     * @param tel
     * @return
     */
    @Select("select * from user where tel = #{tel}")
    User findByTel(String tel);
}
